<?php

namespace app\api\model;

use think\Model;

class Shopping extends Model
{
    /**
     * gouwuche 显示的购物车数据
     */
    public function gouwuche($isSelect)
    {
        return Shopping::where('isSelect',"{$isSelect}")->select();
    }

    public function shangping()
    {
        return Shopping::select();
    }

    public function upd($id,$isSelect)
    {
        return Shopping::where('id',$id)->update(['isSelect'=>$isSelect]);
    }
}
